package com.algo.tests;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;

import com.algo.tools.dataset_converter.SequenceDatabaseConverter;
import com.algo.tools.dataset_generator.SequenceDatabaseGenerator;
import com.algo.tools.dataset_generator.TransactionDatabaseGenerator;

public class MainTestGenerateSequenceDatabase {
	
	

	public static void main(String [] arg) throws IOException{

		String outputFile = "C://patterns//test.txt";
		
		SequenceDatabaseGenerator generator = new SequenceDatabaseGenerator();
		generator.generateDatabase(5, 500, 2, 8, outputFile, false);
	}

	

	public static String fileToPath(String filename) throws UnsupportedEncodingException{
		URL url = SequenceDatabaseConverter.class.getResource(filename);
		 return java.net.URLDecoder.decode(url.getPath(),"UTF-8");
	}
}
